package mercede.allTable;
import mercede.allDTOs.HotelDTO;

import java.io.Serializable;

import javax.persistence.*;


/**
 * The persistent class for the hotel database table.
 * 
 */
@Entity
@NamedQueries({@NamedQuery(name="Hotel.findAll", query="SELECT h FROM Hotel h"),
	@NamedQuery(name="Hotel.FIND_BY_DEST", query="SELECT h FROM  Hotel h WHERE h.hCity=:hcity")})
public class Hotel implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int hID;

	private String hCity;

	private String hCost;

	private String hName;

	public Hotel() {
		super();
	}
	
	public Hotel(HotelDTO hoteldto)
	{
		this.hID=hoteldto.gethID();
		this.hCity=hoteldto.gethCity();
		this.hCost=hoteldto.gethCost();
		this.hName=hoteldto.gethName();
		
		}

	@Override
	public String toString() {
		return "Hotel [hID=" + hID + ", hCity=" + hCity + ", hCost=" + hCost
				+ ", hName=" + hName + "]";
	}

	public int getHID() {
		return this.hID;
	}

	public void setHID(int hID) {
		this.hID = hID;
	}

	public String getHCity() {
		return this.hCity;
	}

	public void setHCity(String hCity) {
		this.hCity = hCity;
	}

	public String getHCost() {
		return this.hCost;
	}

	public void setHCost(String hCost) {
		this.hCost = hCost;
	}

	public String getHName() {
		return this.hName;
	}

	public void setHName(String hName) {
		this.hName = hName;
	}

}